﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace AntMovement.WPF.Converter.Status
{
    [ValueConversion(typeof(bool), typeof(string))]
    public class IntToLabelServiceConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool bl = System.Convert.ToBoolean(value);
            if (bl)
            {
                return "标签服务器启动";
            }
            return "标签服务器未启动";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
